const baseUrl = process.env.VUE_APP_BASE_API
const api = {
  state: {
    // 部署包上传
    deployUploadApi: baseUrl + 'api/deploy/upload',
    // SQL脚本上传
    databaseUploadApi: baseUrl + 'api/database/upload',
    // 实时控制台
    socketApi: baseUrl + 'websocket?token=kl',
    // 图片上传
    imagesUploadApi: baseUrl + 'rest/api/upload/image',
    // 富文本框图片上传
    imagesUploadEditorApi: baseUrl + 'rest/api/upload/editor',
    // 压缩图片上传
    imagesUploadApiV2: baseUrl + 'rest/api/upload/abbreviation',
    // 修改头像
    updateAvatarApi: baseUrl + 'rest/api/user/updateAvatar',
    // 上传文件到七牛云
    qiNiuUploadApi: baseUrl + 'api/qiNiuContent',
    // Sql 监控
    sqlApi: baseUrl + 'druid/index.html',
    // swagger
    swaggerApi: baseUrl + 'swagger-ui.html',
    // 文件上传
    fileUploadApi: baseUrl + 'api/localStorage',
    // baseUrl，
    baseApi: baseUrl
  }
}

export default api
